package org.springframework.test.study.demo;



import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.test.study.entity.Persion;

public class SpringStudyMain {
	public static void main(String[] args) {
		ClassPathXmlApplicationContext ss = new ClassPathXmlApplicationContext("applicationcontest.xml");
		Persion persion = (Persion) ss.getBean("persion");
		persion.setAge(1235);
		persion.setName("liucl");
		System.out.println(persion.toString());

		/*BeanFactory bf = new XmlBeanFactory( new ClassPathResource("applicationcontest.xml"));
		Persion persion1 = (Persion) bf.getBean("persion");
		persion1.setAge(1235);
		persion1.setName("liucl1");
		System.out.println(persion1.toString());*/
	}
}